package com.beiding.listener;

import com.beiding.dao.EvaluationDao;
import com.beiding.dao.UserDao;
import com.beiding.config.UserAmqpConfig;
import com.beiding.dao.RoomDao;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class UserListeners {

  /*  private RoomDao roomDao;

    private UserDao userDao;

    private EvaluationDao evaluationDao;

    public UserListeners(RoomDao roomDao, UserDao userDao, EvaluationDao evaluationDao) {
        this.roomDao = roomDao;
        this.userDao = userDao;
        this.evaluationDao = evaluationDao;
    }

    @RabbitListener(queues = UserAmqpConfig.QUEUE_USER_DELETE)
    public void deleteUser(String userId)
    {
        evaluationDao.deleteByValuer(userId);
        userDao.deleteById(userId);
        roomDao.deleteByHolder(userId);
    }
    */
}
